package com.ruoyi.common.base.enums;


import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 岩层枚举
 *
 * @author gu
 */
public enum CollapseColumnShapeEnum {
    SQUARECOLLAPSECOLUMN("1", "方形陷落柱"),//100
    RECTANGULARCOLLAPSECOLUMN("2", "长方形陷落柱"),//200
    OVALCOLLAPSECOLUMN("3", "椭圆形陷落柱"),//300
    IRREGULARCOLLAPSECOLUMN("4", "不规则形陷落柱"),//500
    ANCHORCOLLAPSECOLUMN("5", "锚形陷落柱");
    private final String code;
    private final String type;

    CollapseColumnShapeEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (CollapseColumnShapeEnum armTypeEnum : CollapseColumnShapeEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }

    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
